﻿using System;
using System.Collections.Generic;
using HAVNet.Core;
using HAVNet.Core.String;


namespace HAVNet.Intros.AST
{
    public class ASTSwitchSections : List<ASTSwitchSection>
    {
        public override string ToString ()
        {
            return Strings.joinobjs (Environment.NewLine, this);
        }
    }

    public class ASTSwitchSection : ASTNode
    {
        public ASTSwitchLabels  switchLabels= new ASTSwitchLabels   ();
        public ASTStatements    statements  = new ASTStatements     ();

        public override string ToString()
        {
            return
                switchLabels.ToString() +
                Environment.NewLine +
                statements.ToString ();
        }
    }
}
